package lzyc.pointsManagement.business.study.controller;

import lzyc.pointsManagement.business.study.domain.StudyInfo;
import lzyc.pointsManagement.business.study.service.StudyInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (StudyInfo)表控制层
 *
 * @author yangyang
 * @since 2024-03-10 17:12:41
 */
@RestController
@RequestMapping("studyInfo")
public class StudyInfoController {
    /**
     * 服务对象
     */
    @Resource
    private StudyInfoService studyInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @PostMapping("selectOne")
    public StudyInfo selectOne(String id) {
        return this.studyInfoService.queryById(id);
    }

}